package com.crm.model.entity.activityManager;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CustomerProductActivityExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CustomerProductActivityExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andProductActivityIdIsNull() {
            addCriterion("product_activity_id is null");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdIsNotNull() {
            addCriterion("product_activity_id is not null");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdEqualTo(String value) {
            addCriterion("product_activity_id =", value, "productActivityId");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdNotEqualTo(String value) {
            addCriterion("product_activity_id <>", value, "productActivityId");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdGreaterThan(String value) {
            addCriterion("product_activity_id >", value, "productActivityId");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdGreaterThanOrEqualTo(String value) {
            addCriterion("product_activity_id >=", value, "productActivityId");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdLessThan(String value) {
            addCriterion("product_activity_id <", value, "productActivityId");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdLessThanOrEqualTo(String value) {
            addCriterion("product_activity_id <=", value, "productActivityId");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdLike(String value) {
            addCriterion("product_activity_id like", value, "productActivityId");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdNotLike(String value) {
            addCriterion("product_activity_id not like", value, "productActivityId");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdIn(List<String> values) {
            addCriterion("product_activity_id in", values, "productActivityId");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdNotIn(List<String> values) {
            addCriterion("product_activity_id not in", values, "productActivityId");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdBetween(String value1, String value2) {
            addCriterion("product_activity_id between", value1, value2, "productActivityId");
            return (Criteria) this;
        }

        public Criteria andProductActivityIdNotBetween(String value1, String value2) {
            addCriterion("product_activity_id not between", value1, value2, "productActivityId");
            return (Criteria) this;
        }

        public Criteria andProductActivityNameIsNull() {
            addCriterion("product_activity_name is null");
            return (Criteria) this;
        }

        public Criteria andProductActivityNameIsNotNull() {
            addCriterion("product_activity_name is not null");
            return (Criteria) this;
        }

        public Criteria andProductActivityNameEqualTo(String value) {
            addCriterion("product_activity_name =", value, "productActivityName");
            return (Criteria) this;
        }

        public Criteria andProductActivityNameNotEqualTo(String value) {
            addCriterion("product_activity_name <>", value, "productActivityName");
            return (Criteria) this;
        }

        public Criteria andProductActivityNameGreaterThan(String value) {
            addCriterion("product_activity_name >", value, "productActivityName");
            return (Criteria) this;
        }

        public Criteria andProductActivityNameGreaterThanOrEqualTo(String value) {
            addCriterion("product_activity_name >=", value, "productActivityName");
            return (Criteria) this;
        }

        public Criteria andProductActivityNameLessThan(String value) {
            addCriterion("product_activity_name <", value, "productActivityName");
            return (Criteria) this;
        }

        public Criteria andProductActivityNameLessThanOrEqualTo(String value) {
            addCriterion("product_activity_name <=", value, "productActivityName");
            return (Criteria) this;
        }

        public Criteria andProductActivityNameLike(String value) {
            addCriterion("product_activity_name like", value, "productActivityName");
            return (Criteria) this;
        }

        public Criteria andProductActivityNameNotLike(String value) {
            addCriterion("product_activity_name not like", value, "productActivityName");
            return (Criteria) this;
        }

        public Criteria andProductActivityNameIn(List<String> values) {
            addCriterion("product_activity_name in", values, "productActivityName");
            return (Criteria) this;
        }

        public Criteria andProductActivityNameNotIn(List<String> values) {
            addCriterion("product_activity_name not in", values, "productActivityName");
            return (Criteria) this;
        }

        public Criteria andProductActivityNameBetween(String value1, String value2) {
            addCriterion("product_activity_name between", value1, value2, "productActivityName");
            return (Criteria) this;
        }

        public Criteria andProductActivityNameNotBetween(String value1, String value2) {
            addCriterion("product_activity_name not between", value1, value2, "productActivityName");
            return (Criteria) this;
        }

        public Criteria andActivityPriceRangeStartIsNull() {
            addCriterion("activity_price_range_start is null");
            return (Criteria) this;
        }

        public Criteria andActivityPriceRangeStartIsNotNull() {
            addCriterion("activity_price_range_start is not null");
            return (Criteria) this;
        }

        public Criteria andActivityPriceRangeStartEqualTo(BigDecimal value) {
            addCriterion("activity_price_range_start =", value, "activityPriceRangeStart");
            return (Criteria) this;
        }

        public Criteria andActivityPriceRangeStartNotEqualTo(BigDecimal value) {
            addCriterion("activity_price_range_start <>", value, "activityPriceRangeStart");
            return (Criteria) this;
        }

        public Criteria andActivityPriceRangeStartGreaterThan(BigDecimal value) {
            addCriterion("activity_price_range_start >", value, "activityPriceRangeStart");
            return (Criteria) this;
        }

        public Criteria andActivityPriceRangeStartGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("activity_price_range_start >=", value, "activityPriceRangeStart");
            return (Criteria) this;
        }

        public Criteria andActivityPriceRangeStartLessThan(BigDecimal value) {
            addCriterion("activity_price_range_start <", value, "activityPriceRangeStart");
            return (Criteria) this;
        }

        public Criteria andActivityPriceRangeStartLessThanOrEqualTo(BigDecimal value) {
            addCriterion("activity_price_range_start <=", value, "activityPriceRangeStart");
            return (Criteria) this;
        }

        public Criteria andActivityPriceRangeStartIn(List<BigDecimal> values) {
            addCriterion("activity_price_range_start in", values, "activityPriceRangeStart");
            return (Criteria) this;
        }

        public Criteria andActivityPriceRangeStartNotIn(List<BigDecimal> values) {
            addCriterion("activity_price_range_start not in", values, "activityPriceRangeStart");
            return (Criteria) this;
        }

        public Criteria andActivityPriceRangeStartBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("activity_price_range_start between", value1, value2, "activityPriceRangeStart");
            return (Criteria) this;
        }

        public Criteria andActivityPriceRangeStartNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("activity_price_range_start not between", value1, value2, "activityPriceRangeStart");
            return (Criteria) this;
        }

        public Criteria andActivityPriceRangeEndIsNull() {
            addCriterion("activity_price_range_end is null");
            return (Criteria) this;
        }

        public Criteria andActivityPriceRangeEndIsNotNull() {
            addCriterion("activity_price_range_end is not null");
            return (Criteria) this;
        }

        public Criteria andActivityPriceRangeEndEqualTo(BigDecimal value) {
            addCriterion("activity_price_range_end =", value, "activityPriceRangeEnd");
            return (Criteria) this;
        }

        public Criteria andActivityPriceRangeEndNotEqualTo(BigDecimal value) {
            addCriterion("activity_price_range_end <>", value, "activityPriceRangeEnd");
            return (Criteria) this;
        }

        public Criteria andActivityPriceRangeEndGreaterThan(BigDecimal value) {
            addCriterion("activity_price_range_end >", value, "activityPriceRangeEnd");
            return (Criteria) this;
        }

        public Criteria andActivityPriceRangeEndGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("activity_price_range_end >=", value, "activityPriceRangeEnd");
            return (Criteria) this;
        }

        public Criteria andActivityPriceRangeEndLessThan(BigDecimal value) {
            addCriterion("activity_price_range_end <", value, "activityPriceRangeEnd");
            return (Criteria) this;
        }

        public Criteria andActivityPriceRangeEndLessThanOrEqualTo(BigDecimal value) {
            addCriterion("activity_price_range_end <=", value, "activityPriceRangeEnd");
            return (Criteria) this;
        }

        public Criteria andActivityPriceRangeEndIn(List<BigDecimal> values) {
            addCriterion("activity_price_range_end in", values, "activityPriceRangeEnd");
            return (Criteria) this;
        }

        public Criteria andActivityPriceRangeEndNotIn(List<BigDecimal> values) {
            addCriterion("activity_price_range_end not in", values, "activityPriceRangeEnd");
            return (Criteria) this;
        }

        public Criteria andActivityPriceRangeEndBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("activity_price_range_end between", value1, value2, "activityPriceRangeEnd");
            return (Criteria) this;
        }

        public Criteria andActivityPriceRangeEndNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("activity_price_range_end not between", value1, value2, "activityPriceRangeEnd");
            return (Criteria) this;
        }

        public Criteria andActivityPeriodValidityStartIsNull() {
            addCriterion("activity_period_validity_start is null");
            return (Criteria) this;
        }

        public Criteria andActivityPeriodValidityStartIsNotNull() {
            addCriterion("activity_period_validity_start is not null");
            return (Criteria) this;
        }

        public Criteria andActivityPeriodValidityStartEqualTo(Date value) {
            addCriterion("activity_period_validity_start =", value, "activityPeriodValidityStart");
            return (Criteria) this;
        }

        public Criteria andActivityPeriodValidityStartNotEqualTo(Date value) {
            addCriterion("activity_period_validity_start <>", value, "activityPeriodValidityStart");
            return (Criteria) this;
        }

        public Criteria andActivityPeriodValidityStartGreaterThan(Date value) {
            addCriterion("activity_period_validity_start >", value, "activityPeriodValidityStart");
            return (Criteria) this;
        }

        public Criteria andActivityPeriodValidityStartGreaterThanOrEqualTo(Date value) {
            addCriterion("activity_period_validity_start >=", value, "activityPeriodValidityStart");
            return (Criteria) this;
        }

        public Criteria andActivityPeriodValidityStartLessThan(Date value) {
            addCriterion("activity_period_validity_start <", value, "activityPeriodValidityStart");
            return (Criteria) this;
        }

        public Criteria andActivityPeriodValidityStartLessThanOrEqualTo(Date value) {
            addCriterion("activity_period_validity_start <=", value, "activityPeriodValidityStart");
            return (Criteria) this;
        }

        public Criteria andActivityPeriodValidityStartIn(List<Date> values) {
            addCriterion("activity_period_validity_start in", values, "activityPeriodValidityStart");
            return (Criteria) this;
        }

        public Criteria andActivityPeriodValidityStartNotIn(List<Date> values) {
            addCriterion("activity_period_validity_start not in", values, "activityPeriodValidityStart");
            return (Criteria) this;
        }

        public Criteria andActivityPeriodValidityStartBetween(Date value1, Date value2) {
            addCriterion("activity_period_validity_start between", value1, value2, "activityPeriodValidityStart");
            return (Criteria) this;
        }

        public Criteria andActivityPeriodValidityStartNotBetween(Date value1, Date value2) {
            addCriterion("activity_period_validity_start not between", value1, value2, "activityPeriodValidityStart");
            return (Criteria) this;
        }

        public Criteria andActivityPeriodValidityEndIsNull() {
            addCriterion("activity_period_validity_end is null");
            return (Criteria) this;
        }

        public Criteria andActivityPeriodValidityEndIsNotNull() {
            addCriterion("activity_period_validity_end is not null");
            return (Criteria) this;
        }

        public Criteria andActivityPeriodValidityEndEqualTo(Date value) {
            addCriterion("activity_period_validity_end =", value, "activityPeriodValidityEnd");
            return (Criteria) this;
        }

        public Criteria andActivityPeriodValidityEndNotEqualTo(Date value) {
            addCriterion("activity_period_validity_end <>", value, "activityPeriodValidityEnd");
            return (Criteria) this;
        }

        public Criteria andActivityPeriodValidityEndGreaterThan(Date value) {
            addCriterion("activity_period_validity_end >", value, "activityPeriodValidityEnd");
            return (Criteria) this;
        }

        public Criteria andActivityPeriodValidityEndGreaterThanOrEqualTo(Date value) {
            addCriterion("activity_period_validity_end >=", value, "activityPeriodValidityEnd");
            return (Criteria) this;
        }

        public Criteria andActivityPeriodValidityEndLessThan(Date value) {
            addCriterion("activity_period_validity_end <", value, "activityPeriodValidityEnd");
            return (Criteria) this;
        }

        public Criteria andActivityPeriodValidityEndLessThanOrEqualTo(Date value) {
            addCriterion("activity_period_validity_end <=", value, "activityPeriodValidityEnd");
            return (Criteria) this;
        }

        public Criteria andActivityPeriodValidityEndIn(List<Date> values) {
            addCriterion("activity_period_validity_end in", values, "activityPeriodValidityEnd");
            return (Criteria) this;
        }

        public Criteria andActivityPeriodValidityEndNotIn(List<Date> values) {
            addCriterion("activity_period_validity_end not in", values, "activityPeriodValidityEnd");
            return (Criteria) this;
        }

        public Criteria andActivityPeriodValidityEndBetween(Date value1, Date value2) {
            addCriterion("activity_period_validity_end between", value1, value2, "activityPeriodValidityEnd");
            return (Criteria) this;
        }

        public Criteria andActivityPeriodValidityEndNotBetween(Date value1, Date value2) {
            addCriterion("activity_period_validity_end not between", value1, value2, "activityPeriodValidityEnd");
            return (Criteria) this;
        }

        public Criteria andActivityShelfStatusIsNull() {
            addCriterion("activity_shelf_status is null");
            return (Criteria) this;
        }

        public Criteria andActivityShelfStatusIsNotNull() {
            addCriterion("activity_shelf_status is not null");
            return (Criteria) this;
        }

        public Criteria andActivityShelfStatusEqualTo(String value) {
            addCriterion("activity_shelf_status =", value, "activityShelfStatus");
            return (Criteria) this;
        }

        public Criteria andActivityShelfStatusNotEqualTo(String value) {
            addCriterion("activity_shelf_status <>", value, "activityShelfStatus");
            return (Criteria) this;
        }

        public Criteria andActivityShelfStatusGreaterThan(String value) {
            addCriterion("activity_shelf_status >", value, "activityShelfStatus");
            return (Criteria) this;
        }

        public Criteria andActivityShelfStatusGreaterThanOrEqualTo(String value) {
            addCriterion("activity_shelf_status >=", value, "activityShelfStatus");
            return (Criteria) this;
        }

        public Criteria andActivityShelfStatusLessThan(String value) {
            addCriterion("activity_shelf_status <", value, "activityShelfStatus");
            return (Criteria) this;
        }

        public Criteria andActivityShelfStatusLessThanOrEqualTo(String value) {
            addCriterion("activity_shelf_status <=", value, "activityShelfStatus");
            return (Criteria) this;
        }

        public Criteria andActivityShelfStatusLike(String value) {
            addCriterion("activity_shelf_status like", value, "activityShelfStatus");
            return (Criteria) this;
        }

        public Criteria andActivityShelfStatusNotLike(String value) {
            addCriterion("activity_shelf_status not like", value, "activityShelfStatus");
            return (Criteria) this;
        }

        public Criteria andActivityShelfStatusIn(List<String> values) {
            addCriterion("activity_shelf_status in", values, "activityShelfStatus");
            return (Criteria) this;
        }

        public Criteria andActivityShelfStatusNotIn(List<String> values) {
            addCriterion("activity_shelf_status not in", values, "activityShelfStatus");
            return (Criteria) this;
        }

        public Criteria andActivityShelfStatusBetween(String value1, String value2) {
            addCriterion("activity_shelf_status between", value1, value2, "activityShelfStatus");
            return (Criteria) this;
        }

        public Criteria andActivityShelfStatusNotBetween(String value1, String value2) {
            addCriterion("activity_shelf_status not between", value1, value2, "activityShelfStatus");
            return (Criteria) this;
        }

        public Criteria andActivityPriceIsNull() {
            addCriterion("activity_price is null");
            return (Criteria) this;
        }

        public Criteria andActivityPriceIsNotNull() {
            addCriterion("activity_price is not null");
            return (Criteria) this;
        }

        public Criteria andActivityPriceEqualTo(BigDecimal value) {
            addCriterion("activity_price =", value, "activityPrice");
            return (Criteria) this;
        }

        public Criteria andActivityPriceNotEqualTo(BigDecimal value) {
            addCriterion("activity_price <>", value, "activityPrice");
            return (Criteria) this;
        }

        public Criteria andActivityPriceGreaterThan(BigDecimal value) {
            addCriterion("activity_price >", value, "activityPrice");
            return (Criteria) this;
        }

        public Criteria andActivityPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("activity_price >=", value, "activityPrice");
            return (Criteria) this;
        }

        public Criteria andActivityPriceLessThan(BigDecimal value) {
            addCriterion("activity_price <", value, "activityPrice");
            return (Criteria) this;
        }

        public Criteria andActivityPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("activity_price <=", value, "activityPrice");
            return (Criteria) this;
        }

        public Criteria andActivityPriceIn(List<BigDecimal> values) {
            addCriterion("activity_price in", values, "activityPrice");
            return (Criteria) this;
        }

        public Criteria andActivityPriceNotIn(List<BigDecimal> values) {
            addCriterion("activity_price not in", values, "activityPrice");
            return (Criteria) this;
        }

        public Criteria andActivityPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("activity_price between", value1, value2, "activityPrice");
            return (Criteria) this;
        }

        public Criteria andActivityPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("activity_price not between", value1, value2, "activityPrice");
            return (Criteria) this;
        }

        public Criteria andExchangeMethodIsNull() {
            addCriterion("exchange_method is null");
            return (Criteria) this;
        }

        public Criteria andExchangeMethodIsNotNull() {
            addCriterion("exchange_method is not null");
            return (Criteria) this;
        }

        public Criteria andExchangeMethodEqualTo(String value) {
            addCriterion("exchange_method =", value, "exchangeMethod");
            return (Criteria) this;
        }

        public Criteria andExchangeMethodNotEqualTo(String value) {
            addCriterion("exchange_method <>", value, "exchangeMethod");
            return (Criteria) this;
        }

        public Criteria andExchangeMethodGreaterThan(String value) {
            addCriterion("exchange_method >", value, "exchangeMethod");
            return (Criteria) this;
        }

        public Criteria andExchangeMethodGreaterThanOrEqualTo(String value) {
            addCriterion("exchange_method >=", value, "exchangeMethod");
            return (Criteria) this;
        }

        public Criteria andExchangeMethodLessThan(String value) {
            addCriterion("exchange_method <", value, "exchangeMethod");
            return (Criteria) this;
        }

        public Criteria andExchangeMethodLessThanOrEqualTo(String value) {
            addCriterion("exchange_method <=", value, "exchangeMethod");
            return (Criteria) this;
        }

        public Criteria andExchangeMethodLike(String value) {
            addCriterion("exchange_method like", value, "exchangeMethod");
            return (Criteria) this;
        }

        public Criteria andExchangeMethodNotLike(String value) {
            addCriterion("exchange_method not like", value, "exchangeMethod");
            return (Criteria) this;
        }

        public Criteria andExchangeMethodIn(List<String> values) {
            addCriterion("exchange_method in", values, "exchangeMethod");
            return (Criteria) this;
        }

        public Criteria andExchangeMethodNotIn(List<String> values) {
            addCriterion("exchange_method not in", values, "exchangeMethod");
            return (Criteria) this;
        }

        public Criteria andExchangeMethodBetween(String value1, String value2) {
            addCriterion("exchange_method between", value1, value2, "exchangeMethod");
            return (Criteria) this;
        }

        public Criteria andExchangeMethodNotBetween(String value1, String value2) {
            addCriterion("exchange_method not between", value1, value2, "exchangeMethod");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIsNull() {
            addCriterion("delete_status is null");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIsNotNull() {
            addCriterion("delete_status is not null");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusEqualTo(Short value) {
            addCriterion("delete_status =", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotEqualTo(Short value) {
            addCriterion("delete_status <>", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusGreaterThan(Short value) {
            addCriterion("delete_status >", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusGreaterThanOrEqualTo(Short value) {
            addCriterion("delete_status >=", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusLessThan(Short value) {
            addCriterion("delete_status <", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusLessThanOrEqualTo(Short value) {
            addCriterion("delete_status <=", value, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusIn(List<Short> values) {
            addCriterion("delete_status in", values, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotIn(List<Short> values) {
            addCriterion("delete_status not in", values, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusBetween(Short value1, Short value2) {
            addCriterion("delete_status between", value1, value2, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andDeleteStatusNotBetween(Short value1, Short value2) {
            addCriterion("delete_status not between", value1, value2, "deleteStatus");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdIsNull() {
            addCriterion("create_people_id is null");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdIsNotNull() {
            addCriterion("create_people_id is not null");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdEqualTo(String value) {
            addCriterion("create_people_id =", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotEqualTo(String value) {
            addCriterion("create_people_id <>", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdGreaterThan(String value) {
            addCriterion("create_people_id >", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdGreaterThanOrEqualTo(String value) {
            addCriterion("create_people_id >=", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdLessThan(String value) {
            addCriterion("create_people_id <", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdLessThanOrEqualTo(String value) {
            addCriterion("create_people_id <=", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdLike(String value) {
            addCriterion("create_people_id like", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotLike(String value) {
            addCriterion("create_people_id not like", value, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdIn(List<String> values) {
            addCriterion("create_people_id in", values, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotIn(List<String> values) {
            addCriterion("create_people_id not in", values, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdBetween(String value1, String value2) {
            addCriterion("create_people_id between", value1, value2, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreatePeopleIdNotBetween(String value1, String value2) {
            addCriterion("create_people_id not between", value1, value2, "createPeopleId");
            return (Criteria) this;
        }

        public Criteria andCreateTmIsNull() {
            addCriterion("create_tm is null");
            return (Criteria) this;
        }

        public Criteria andCreateTmIsNotNull() {
            addCriterion("create_tm is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTmEqualTo(Date value) {
            addCriterion("create_tm =", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotEqualTo(Date value) {
            addCriterion("create_tm <>", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmGreaterThan(Date value) {
            addCriterion("create_tm >", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmGreaterThanOrEqualTo(Date value) {
            addCriterion("create_tm >=", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmLessThan(Date value) {
            addCriterion("create_tm <", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmLessThanOrEqualTo(Date value) {
            addCriterion("create_tm <=", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmIn(List<Date> values) {
            addCriterion("create_tm in", values, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotIn(List<Date> values) {
            addCriterion("create_tm not in", values, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmBetween(Date value1, Date value2) {
            addCriterion("create_tm between", value1, value2, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotBetween(Date value1, Date value2) {
            addCriterion("create_tm not between", value1, value2, "createTm");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdIsNull() {
            addCriterion("update_people_id is null");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdIsNotNull() {
            addCriterion("update_people_id is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdEqualTo(String value) {
            addCriterion("update_people_id =", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotEqualTo(String value) {
            addCriterion("update_people_id <>", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdGreaterThan(String value) {
            addCriterion("update_people_id >", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdGreaterThanOrEqualTo(String value) {
            addCriterion("update_people_id >=", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdLessThan(String value) {
            addCriterion("update_people_id <", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdLessThanOrEqualTo(String value) {
            addCriterion("update_people_id <=", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdLike(String value) {
            addCriterion("update_people_id like", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotLike(String value) {
            addCriterion("update_people_id not like", value, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdIn(List<String> values) {
            addCriterion("update_people_id in", values, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotIn(List<String> values) {
            addCriterion("update_people_id not in", values, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdBetween(String value1, String value2) {
            addCriterion("update_people_id between", value1, value2, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdatePeopleIdNotBetween(String value1, String value2) {
            addCriterion("update_people_id not between", value1, value2, "updatePeopleId");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIsNull() {
            addCriterion("update_tm is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIsNotNull() {
            addCriterion("update_tm is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTmEqualTo(Date value) {
            addCriterion("update_tm =", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotEqualTo(Date value) {
            addCriterion("update_tm <>", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmGreaterThan(Date value) {
            addCriterion("update_tm >", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmGreaterThanOrEqualTo(Date value) {
            addCriterion("update_tm >=", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmLessThan(Date value) {
            addCriterion("update_tm <", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmLessThanOrEqualTo(Date value) {
            addCriterion("update_tm <=", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIn(List<Date> values) {
            addCriterion("update_tm in", values, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotIn(List<Date> values) {
            addCriterion("update_tm not in", values, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmBetween(Date value1, Date value2) {
            addCriterion("update_tm between", value1, value2, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotBetween(Date value1, Date value2) {
            addCriterion("update_tm not between", value1, value2, "updateTm");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}